package com.hbx.controller;

import com.hbx.service.SysService;
import com.hbx.utils.Result;
import com.hbx.vo.logs.LogPreSysInfoVo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/*
 * @Author:hbx
 * 
 * */
@Api(tags = "系统处理器")
@RestController
@RequestMapping("/sys")
public class SysController {

    @Autowired
    private SysService sysService;

    @RequestMapping(value = "/getLogPreSysInfo",method = RequestMethod.GET)
    @ApiOperation(value = "获取系统操作信息")
    public Result<LogPreSysInfoVo> getLogPreSysInfo(){
        Result<LogPreSysInfoVo> r = new Result<>();
        sysService.getTableAndOperaInfo(r);
        return r;
    }
}
